﻿<UserControl x:Class="Jbe.TestSuite.TestDevices.FunctionGenerator.ControlView.Presentation.FunctionGeneratorView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:v="clr-namespace:Jbe.TestSuite.TestDevices.FunctionGenerator.ControlView.Presentation"
    xmlns:p="clr-namespace:Jbe.TestSuite.TestDevices.FunctionGenerator.ControlView.Properties"
    xmlns:i="http://www.codeplex.com/CompositeExtensions/TestSuite/Interface"
    xmlns:cae="http://www.codeplex.com/CompositeExtensions"
    cae:ResourceService.MergeSharedDictionaries="{x:Static i:ResourceHelper.SharedResourcePath}">

    <ScrollViewer VerticalScrollBarVisibility="Auto">
        <StackPanel Grid.IsSharedSizeScope="True">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" SharedSizeGroup="Column0"/>
                    <ColumnDefinition Width="Auto" SharedSizeGroup="Column1"/>
                    <ColumnDefinition Width="11"/>
                </Grid.ColumnDefinitions>

                <Label Content="{x:Static p:Resources.Configuration}" Grid.Row="0" Grid.Column="0" Style="{StaticResource Label.Header}"/>
            </Grid>
            <v:ConfigurationView x:Name="configurationView" IsEnabled="False" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"/>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="11"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" SharedSizeGroup="Column0"/>
                    <ColumnDefinition Width="Auto" SharedSizeGroup="Column1"/>
                    <ColumnDefinition Width="11"/>
                </Grid.ColumnDefinitions>

                <Button Content="{x:Static p:Resources.Configure}" Command="{Binding ConfigureCommand}" Grid.Row="0" Grid.Column="1" Margin="11,0,0,0"/>
                <Label Content="{x:Static p:Resources.Control}" Grid.Row="1" Grid.Column="0" Style="{StaticResource Label.Header}"/>
                <Label Content="{x:Static p:Resources.Active}" Grid.Row="2" Grid.Column="0"/>
                <Label Content="{Binding IsActive, Converter={x:Static v:BoolToStringConverter.Default}}" Grid.Row="2" Grid.Column="1"/>
                <Button Content="{x:Static p:Resources.Start}" Command="{Binding StartCommand}" Grid.Row="3" Grid.Column="1" Margin="11,7,0,0"/>
                <Button Content="{x:Static p:Resources.Stop}" Command="{Binding StopCommand}" Grid.Row="4" Grid.Column="1" Margin="11,7,0,0"/>
            </Grid>
        </StackPanel>
    </ScrollViewer>
</UserControl>
